using System;
using System.Collections.Generic;
using System.Text;

namespace LeisureCenter.Api
{
    public interface IMenuItem
    {
        string Text { get; }
        string IconName { get; }

        void Execute();
        void ExecuteAgain();
        void OptionsExecute();
    }

    public interface IMainMenuItemsProvider
    {
        IEnumerable<IMenuItem> Items { get; }
    }

    public interface IMenuManager
    {
        void RegisterMainMenuItemsProvider(string name, IMainMenuItemsProvider provider);
        void UnRegisterMainMenuItemsProvider(string name);

        void RefreshMainMenu();
        void FillSubmenu(IEnumerable<IMenuItem> items);
    }
}
